package demo.pattern.adapter;

/**
 * @author : GuoFei
 * @since : 2019/6/25 16:51
 */
public class ApplicationTest {

    public static void main(String[] args) {
        TV tv = new TV("凤凰牌");
        // 把电视插在适配器上
        ThreeElectricAdapter adapter = new ThreeElectricAdapter(tv);
        System.out.println("使用三相插座接通电流");
        adapter.connectElectricCurrent();
    }

}
